package top.anydata.lifeofcode.lifesystem.service.third;

import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 功能描述:
 *
 * @author <a href="mailto:caingao@anydata.top">CainGao</a>
 * @version V_1.0
 * @date 2023/10/10 3:16 PM
 */
public interface IAliYunService {

    /**
    * 功能描述: oss上传文件,返回文件链接地址
    * @author: <a href="mailto:caingao@anydata.top">CainGao</a>
    * @date: 3:18 PM 2023/10/10
    * @param: [objectName, file]
    * @return: boolean
    */
    String ossUploadFile(String objectName, MultipartFile file) throws Exception;

    /**
    * 功能描述: OSS生成临时目录
    * @author: <a href="mailto:caingao@anydata.top">CainGao</a>
    * @date: 3:18 PM 2023/10/10
    * @param: [objectName]
    * @return: java.lang.String
    */
    String ossPresignedUrl(String objectName);


    /**
    * 功能描述: 发送短信
    * @author: <a href="mailto:caingao@anydata.top">CainGao</a>
    * @date: 3:18 PM 2023/10/10
    * @param: [signName, phone, templateCode, templateParam]
    * @return: java.lang.String
    */
    String shortMsgSend(String signName, String phone, String templateCode, Map<String,String> templateParam);


}
